import Vue from 'vue'
import Vuex from 'vuex'

// import modules from './modules'

Vue.use(Vuex)

export default new Vuex.Store({
    // modules,
    state: {
        name: 666
    },
    mutations: {
        _setStore(state, obj) {
            for (let key in obj) {
                if (state) state[key] = obj[key]
            }
        }
    },
    actions: {
        _setStore(context, obj) {
            context.commit('_setStore', obj)
        }
    },
    strict: false
})